﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/RopaOnline.Master" AutoEventWireup="true"
	CodeBehind="ProductTypeManagement.aspx.cs" Inherits="Upsam.RopaOnline.Web.ProductTypeManagement" %>

<asp:Content ID="cntHead" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="cntContext" ContentPlaceHolderID="cphContext" runat="server">
	<asp:FormView ID="fvwProductType" runat="server" BackColor="White" BorderColor="#E7E7FF"
		BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="IdTipoProducto"
		DataSourceID="ldsProductType" GridLines="Horizontal" OnItemCommand="fvwProductType_ItemCommand"
		OnItemInserted="fvwProductType_ItemInserted" OnItemUpdated="fvwProductType_ItemUpdated"
		CssClass="formView">
		<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
		<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
		<EditItemTemplate>
			IdTipoProducto:
			<asp:Label ID="IdTipoProductoLabel1" runat="server" Text='<%# Eval("IdTipoProducto") %>' />
			<br />
			TipoProducto1:
			<asp:TextBox ID="TipoProducto1TextBox" runat="server" Text='<%# Bind("TipoProducto1") %>' />
			<br />
			<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
				Text="Guardar" />
			&nbsp;<asp:LinkButton ID="ViewButton" runat="server" CausesValidation="True" CommandName="View"
				Text="Ver" />
			&nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
				CommandName="Cancel" Text="Cancelar" />
		</EditItemTemplate>
		<InsertItemTemplate>
			TipoProducto1:
			<asp:TextBox ID="TipoProducto1TextBox" runat="server" Text='<%# Bind("TipoProducto1") %>' />
			<br />
			<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
				Text="Guardar" />
			&nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False"
				CommandName="Cancel" Text="Cancelar" />
		</InsertItemTemplate>
		<ItemTemplate>
			IdTipoProducto:
			<asp:Label ID="IdTipoProductoLabel" runat="server" Text='<%# Eval("IdTipoProducto") %>' />
			<br />
			TipoProducto1:
			<asp:Label ID="TipoProducto1Label" runat="server" Text='<%# Bind("TipoProducto1") %>' />
			<br />
			Productos:
			<asp:Repeater ID="rptProducts" runat="server">
				<ItemTemplate>
					<asp:Label ID="lblProductName" runat="server" Text='<%# Bind("Productos.Nombre") %>'></asp:Label>
				</ItemTemplate>
			</asp:Repeater>
			<br />
			<asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
				Text="Editar" />
			&nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
				Text="Nuevo" />
			&nbsp;<asp:LinkButton ID="ViewCancelButton" runat="server" CausesValidation="False"
				CommandName="Cancel" Text="Cancelar" />
		</ItemTemplate>
		<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
		<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
		<EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
	</asp:FormView>
	<asp:LinqDataSource ID="ldsProductType" runat="server" AutoPage="False" AutoSort="False"
		ContextTypeName="Upsam.RopaOnline.Modelo.Data.RopaOnLineDataContext" EnableInsert="True"
		EnableUpdate="True" TableName="TipoProductos" Where="IdTipoProducto == @IdTipoProducto">
		<WhereParameters>
			<asp:QueryStringParameter DefaultValue="0" Name="IdTipoProducto" QueryStringField="IdEntity"
				Type="Int32" />
		</WhereParameters>
	</asp:LinqDataSource>
</asp:Content>
